Optimal. Leaf size=50 \[ -\frac{(A+2 C) \sin ^3(c+d x)}{3 d}+\frac{(A+C) \sin (c+d x)}{d}+\frac{C \sin ^5(c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0524978, antiderivative size = 50, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3013, 373} \[ -\frac{(A+2 C) \sin ^3(c+d x)}{3 d}+\frac{(A+C) \sin (c+d x)}{d}+\frac{C \sin ^5(c+d x)}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3013
Rule 373
Rubi steps
\begin{align*} \int \cos ^3(c+d x) \left (A+C \cos ^2(c+d x)\right ) \, dx &=-\frac{\operatorname{Subst}\left (\int \left (1-x^2\right ) \left (A+C-C x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=-\frac{\operatorname{Subst}\left (\int \left (A \left (1+\frac{C}{A}\right )-(A+2 C) x^2+C x^4\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac{(A+C) \sin (c+d x)}{d}-\frac{(A+2 C) \sin ^3(c+d x)}{3 d}+\frac{C \sin ^5(c+d x)}{5 d}\\ \end{align*}
Mathematica [A] time = 0.017613, size = 71, normalized size = 1.42 \[ -\frac{A \sin ^3(c+d x)}{3 d}+\frac{A \sin (c+d x)}{d}+\frac{C \sin ^5(c+d x)}{5 d}-\frac{2 C \sin ^3(c+d x)}{3 d}+\frac{C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.04, size = 54, normalized size = 1.1 \begin{align*}{\frac{1}{d} \left ({\frac{C\sin \left ( dx+c \right ) }{5} \left ({\frac{8}{3}}+ \left ( \cos \left ( dx+c \right ) \right ) ^{4}+{\frac{4\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{3}} \right ) }+{\frac{A \left ( 2+ \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sin \left ( dx+c \right ) }{3}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.04346, size = 58, normalized size = 1.16 \begin{align*} \frac{3 \, C \sin \left (d x + c\right )^{5} - 5 \,{\left (A + 2 \, C\right )} \sin \left (d x + c\right )^{3} + 15 \,{\left (A + C\right )} \sin \left (d x + c\right )}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.62552, size = 113, normalized size = 2.26 \begin{align*} \frac{{\left (3 \, C \cos \left (d x + c\right )^{4} +{\left (5 \, A + 4 \, C\right )} \cos \left (d x + c\right )^{2} + 10 \, A + 8 \, C\right )} \sin \left (d x + c\right )}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.17319, size = 105, normalized size = 2.1 \begin{align*} \begin{cases} \frac{2 A \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac{A \sin{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} + \frac{8 C \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac{4 C \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} + \frac{C \sin{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} & \text{for}\: d \neq 0 \\x \left (A + C \cos ^{2}{\left (c \right )}\right ) \cos ^{3}{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13065, size = 77, normalized size = 1.54 \begin{align*} \frac{3 \, C \sin \left (d x + c\right )^{5} - 5 \, A \sin \left (d x + c\right )^{3} - 10 \, C \sin \left (d x + c\right )^{3} + 15 \, A \sin \left (d x + c\right ) + 15 \, C \sin \left (d x + c\right )}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]